@section('title')
	找律师 @parent
@show

@section('content')
{{ HTML::style('css/lawyer.css')}} 
{{ HTML::style('css/news.css')}} 
{{ HTML::script('js/news/view.js') }}
<div class="container">
    <div class="newsView-left">
        <h1>{{ $data['title'] }}</h1>
        <div class="info-name-time"><a href="{{ Config::get('app.url') }}/lawyer/{{ $data['author']['author_id'] }}" class="color2"> {{ $data['author']['author_name'] }} </a> - <span class="color9"> {{ $data['created_at'] }}</span></div>
        <img src="{{ $data['img'] }}" width="650" height="400">
        <div class="conentbox">{{ $data['content'] }}</div>
        <div class="textac">关注微信公众号律团公益平台（lvtuangy）,获得精华内容每日推送</div>
        <div class="gongzh-img"></div>
        <div id="commentsBox">发表评论</div>
        @if(!Auth::check())
        <div class="comment-login">
            <div style="margin: 50px 250px;">
                <a href="{{ route('home.login') }}" class="color1">登录</a>
                <span class="color9">后参与评论</span>
            </div>
        </div>
        <div style="overflow: hidden;"><a class="publish-comment">发表评论</a></div>
        @else
        <div class="comment-compile">
            <div class="com-info">
                <img src="{{ Config::get('app.url') }}/file/show?path={{Auth::user()->avatar}}" width="100" height="100" style="border-radius: 50%;margin:20px;">
                <p>{{Auth::user()->realname}}</p>
            </div>
            <div class="text-comp"><textarea class="inpyt-comp" maxlength="300"></textarea></div>
        </div>
        <div style="overflow: hidden;"><a href="##" class="publish-comment">发表评论</a></div>
        @endif
        <div class="lv-comment">
            <div class="lv-comments">
                <div class="comments-list">
                    <ul id="page" style="border-top: 1px solid #e8e8e8;">
                    </ul>
                    <div class="more"><a href="javascript:void(0);" type="button" class="moreComent" value="" style="color:#FFF">查看更多评论</a></div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="fix-icon">
    <a class="onlike" title="点赞" href="##"></a>
    <a class="onfavorite" title="收藏" href="##"></a>
    <a class="oncomment" title="发表评论" href="#commentsBox"></a>
</div>
<script type="text/javascript">
	var id = "{{$data['id']}}";
	var page = 1;
    var item_type = "article";
	var jumpUrl ="{{ Config::get('app.url') }}";
    var is_collect = "{{ $data['is_collect'] }}";
	var is_like = "{{ $data['is_like'] }}";
    var islogin = "{{ Auth::check() }}";
    var comment_url = "{{ Route('article.comment', $data['id']) }}"
</script>
@show